package com.cm.course.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xdf
 * @date 2023-06-17
 */
@Configuration
public class MybatisConfig {

    /**
     * 注册分页插件
     *
     * @return new PaginationInterceptor()
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
